package znbkListRdtz.api;

import com.example.lancooznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxFragment;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2018\2\5 0005.
 */

public class HeatPointExtensionListApi extends BaseApi{


    private String ResType = "";
    private int State = -1;
    private int DateFlag = 1;
    private int IndexFlag = -1;
    private int PageNumber = 1;
    private int PageSize = 10;


    public HeatPointExtensionListApi(HttpOnNextListener listener, RxFragment rxFragment) {
        super(listener, rxFragment);
    }

    public String getResType() {
        return ResType;
    }

    public void setResType(String resType) {
        ResType = resType;
    }

    public int getState() {
        return State;
    }

    public void setState(int state) {
        State = state;
    }

    public int getDateFlag() {
        return DateFlag;
    }

    public void setDateFlag(int dateFlag) {
        DateFlag = dateFlag;
    }

    public int getIndexFlag() {
        return IndexFlag;
    }

    public void setIndexFlag(int indexFlag) {
        IndexFlag = indexFlag;
    }

    public int getPageNumber() {
        return PageNumber;
    }

    public void setPageNumber(int pageNumber) {
        PageNumber = pageNumber;
    }

    public int getPageSize() {
        return PageSize;
    }

    public void setPageSize(int pageSize) {
        PageSize = pageSize;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getHeatPointExtensionItem(UserInfo.StuId,UserInfo.SubjectId, UserInfo.StageNo,
                ResType,State,DateFlag,IndexFlag,PageNumber,PageSize);
    }
}
